# -*- coding: utf-8 -*-
from django.contrib import admin
from tags.models import TagType, TaggedObject

class TaggedObjectAdmin(admin.ModelAdmin):
    search_fields = ('=tag__type',)
    raw_id_fields = ('user', 'tag')
    list_display = ('user', 'content_type', 'object_id', 'tag', 'created')

admin.site.register(TaggedObject, TaggedObjectAdmin)

admin.site.register(TagType)
